﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="syslog.aspx.cs" Inherits="Sys_syslog" %>
<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>系统日志</title>
	<link rel="stylesheet" type="text/css" href="../CSS/Style.css"/>
    <script type="text/javascript" src="../js/jquery-1.4.2.min.js"></script>
    <script type="text/javascript" src="../js/My97DatePicker/WdatePicker.js"></script>  
</head>
<body>
    <form id="form1" runat="server">
    <div>
     <asp:ScriptManager ID="ScriptManager1" runat="server">
        </asp:ScriptManager>
        <asp:UpdatePanel ID="UpdatePanel1" runat="server">
            <ContentTemplate>
            <div style="background-color:#fedcbd; padding-bottom:5px;"> 
        <table border="0" cellpadding="0" cellspacing="0" style="width: 100%;">
                        <tr>
                            <td>
                                操作人：</td>
                            <td>
                                <asp:TextBox ID="txtName" runat="server" Width="70px" MaxLength="5"></asp:TextBox></td>   
                             <td>
                                 操作时间：</td>
                            <td>
                                <input id="txtStart" runat="server" style="width: 130px" type="text" onfocus="WdatePicker({startDate:'%y-%M-01 00:00:00',dateFmt:'yyyy-MM-dd HH:mm:ss',alwaysUseStartDate:true,isShowClear:true,autoPickDate:true,readOnly:true,maxDate:'#F{$dp.$D(\'txtEnd\',{d:-1})||\'2020-10-01\'}'})" readonly="readOnly" />
                                到<input id="txtEnd" runat="server" style="width: 130px" type="text" onfocus="WdatePicker({startDate:'%y-%M-01 00:00:00',dateFmt:'yyyy-MM-dd HH:mm:ss',alwaysUseStartDate:true,isShowClear:true,autoPickDate:true,readOnly:true,minDate:'#F{$dp.$D(\'txtStart\',{d:+1})}',maxDate:'2020-10-01'})" readonly="readOnly" /></td>    
                            <td>
                                级别：</td>
                            <td>
                                <asp:DropDownList ID="ddlUserType" runat="server">
                                    <asp:ListItem Value="99">全部</asp:ListItem>
                                    <asp:ListItem Value="1">普通</asp:ListItem>
                                    <asp:ListItem Value="2">学院</asp:ListItem>
                                    <asp:ListItem Value="3">项目</asp:ListItem>
                                    <asp:ListItem Value="4">系统</asp:ListItem>
                                    <asp:ListItem Value="5">其他</asp:ListItem>
                                </asp:DropDownList></td>  
                            <td>操作类型：</td>
                           <td>
                               <asp:DropDownList ID="ddlOperateType" runat="server">
                                   <asp:ListItem Value="99">全部</asp:ListItem>
                                   <asp:ListItem Value="1">登进/登出</asp:ListItem>
                                   <asp:ListItem Value="2">添加</asp:ListItem>
                                   <asp:ListItem Value="3">删除</asp:ListItem>
                                   <asp:ListItem Value="4">修改</asp:ListItem>
                                   <asp:ListItem Value="5">其他</asp:ListItem>
                               </asp:DropDownList></td>   
                            <td>
                                <asp:ImageButton ID="btnSerch" runat="server" ImageUrl="~/Images/search.png" OnClick="btnSeach_Click" /></td>
                        </tr>
        </table>
        </div>
                  </ContentTemplate>
        </asp:UpdatePanel>
        <asp:UpdatePanel ID="UpdatePanel2" runat="server">
         <ContentTemplate>
                    <div style="text-align:left;"><asp:Button ID="btnDel" runat="server" Text="删除全部" OnClick="btnDel_Click" /></div>
                   <div>
                    <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" CssClass="gvStyle" AlternatingRowStyle-CssClass="alt" PagerStyle-CssClass="pgr" EmptyDataText="暂时无任何数据！" Width="100%" DataKeyNames="id">
                        <Columns>
                            <asp:TemplateField>
                              <HeaderTemplate>
                               <asp:CheckBox ID="CheckBox_All" runat="server" Text="" AutoPostBack="true" OnCheckedChanged="CheckAll" />
                             </HeaderTemplate>
                            <ItemTemplate>
                                <asp:CheckBox ID="ItemBox" runat="server" />
                            </ItemTemplate>
                            <HeaderStyle Width="25px" />
                            <ItemStyle Width="20px" />
                        </asp:TemplateField>
                            <asp:BoundField DataField="username" HeaderText="操作人" >
                                <ItemStyle Width="50px" />
                            </asp:BoundField>
                            <asp:BoundField DataField="usertype" HeaderText="级别">
                                <ItemStyle Width="30px" />
                            </asp:BoundField>
                            <asp:BoundField DataField="ip" HeaderText="IP地址" />
                            <asp:BoundField DataField="browser" HeaderText="浏览器" />
                            <asp:BoundField DataField="operate" HeaderText="操作内容" />
                            <asp:BoundField DataField="operatedate" HeaderText="时间" >
                                <ItemStyle Width="150px" />
                            </asp:BoundField>
                            <asp:BoundField DataField="flag" HeaderText="类别" >
                                <ItemStyle Width="30px" />
                            </asp:BoundField>
                        </Columns>
                        <PagerStyle CssClass="pgr" />
                        <AlternatingRowStyle CssClass="alt" />
                    </asp:GridView>
                    <webdiyer:AspNetPager ID="AspNetPager1" runat="server" AlwaysShow="True" CustomInfoHTML="共<font color=blue><b>%RecordCount%</b></font>条数据 每页：<font color=blue><b>%PageSize%</b></font> 条 共<font color=blue><b>%PageCount%</b></font>页 当前页：<font color=red><b>%CurrentPageIndex%/%PageCount%</b></font>"
                        CustomInfoSectionWidth="50%" FirstPageText="首页" HorizontalAlign="Right" LastPageText="末页"
                        NextPageText="下一页" OnPageChanged="AspNetPager1_PageChanged" PageIndexBoxType="TextBox"
                        PageSize="15" PrevPageText="上一页" ShowCustomInfoSection="Left" ShowPageIndexBox="Always"
                        SubmitButtonText="Go" TextAfterPageIndexBox="页" TextBeforePageIndexBox="转到" Width="100%" CustomInfoTextAlign="Left">
                    </webdiyer:AspNetPager>
                   </div>  
                  </ContentTemplate>
              </asp:UpdatePanel> 
    </div>
    </form>
</body>
</html>